package com.chen.controller;


import com.chen.entity.Regions;
import com.chen.service.RegionsService;
import com.chen.vo.Result;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 地州信息表 前端控制器
 * </p>
 *
 * @author cws
 * @since 2024-11-22
 */
@RestController
@RequestMapping("/mall/regions")
public class RegionsController {

    @Resource
    private  RegionsService regionsService;


    @ApiOperation("获取地区列表")
    @RequestMapping("/list")
    public Result list(){
        List<Regions> list = regionsService.list();
        return Result.success(list);
    }




}

